#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    if((a+b+c)*1.0/3>=60)cout<<"NO"<<endl;
    else cout<<"YES"<<endl;
    return 0;
}
